package com.WISSC.service;

import com.WISSC.bean.Massage;
import com.WISSC.bean.Student;
import com.WISSC.bean.StudentImage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学员图片关联表 服务类
 * </p>
 *
 * @author 冯政尚
 * @since 2019-05-05
 */
public interface StudentImageService extends IService<StudentImage> {

    /**
     * @param file
     * @return 文件上传
     */
    Massage upload(MultipartFile file);

    /**
     * @return 获取 StudentImage对象
     */
//    List<StudentImage> getImageUrl (Map map);

    Massage updatePicture(String studentId, MultipartFile file);

    List<StudentImage> getStudentImage(Map map);

    Massage updateimageUrl(MultipartFile file, String stuId);

    boolean removeByStudentId(Long id);

    List<StudentImage> getBystuId(Long id);
}
